{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% block title %}ITAM - 查询员工{% endblock %}
{% import "_macros.html" as macros %}
{% block content %}
<div class="center-block" style="width:50%">
<table class="table">
  <thead>
    <tr>
        <th>ID</th>
        <th>花名</th>
        <th>状态</th>
        <th>创建时间</th>
        <th>更新时间</th>
        <th>管理</th>
    </tr>
    </thead>
    <tbody>
{% for i in user %}
    <tr>
    <td>{{ i.user_id }}</td>
    <td>{{ i.name }}</td>
    <td>{% if i.user_state == 1 %}
            在职
        {% else %}
            离职
        {% endif %}
    </td>
    <td>{{ i.user_ctime }}</td>
    <td>{{ i.user_utime }}</td>
    <td><a href="/editor/user?id={{ i.user_id }}">更新</a></td>
{% endfor %}
  </tbody>
</table>
{% if pagination %}
<div class="pagination center-block" style="width:50%">
    {{ macros.pagination_widget(pagination, 'select',search = 'user') }}
</div>
{% endif %}
</div>

{% endblock %}
